package ${model.packageName}.api.bean.request;

import ${model.packageName}.constant.errorcode.${model.initUpperName}ErrorCode;
import ${model.packageName}.enums.${model.initUpperName}OperationType;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.terminus.api.consts.OperationType;
import io.terminus.api.request.AbstractRequest;
import io.terminus.api.utils.ParamUtil;
import lombok.Data;

@Data
@ApiModel(value = "${model.initUpperName}DeleteRequest", description = "${model.desc}删除请求", parent = AbstractRequest.class)
public class ${model.initUpperName}DeleteRequest extends AbstractRequest {

	@ApiModelProperty(value = "Id")
	private Long id;

	@Override
	public void checkParam() {
		super.checkParam();
		ParamUtil.nonNull(id, ${model.initUpperName}ErrorCode._IS_BLANK);
	}
	
    @Override
    public OperationType getOperationType() {
        return ${model.initUpperName}OperationType.${model.dbName?upper_case}_DELETE;
    }
}
